

 <script setup>
import { ref, onMounted } from 'vue'
const hRef = ref(null)
onMounted(() => {
  console.log(hRef.value);
})
</script>

<template>
  <div>
    御剑乘风来,除魔天地间!===vue3
    <h1 ref="hRef">我是一个h1盒子</h1>
  </div>
</template>
<style lang='less'  scoped>
</style>